const Header = () => import('@/components/header')
const Footer = () => import('@/components/footer')
const Destination = () => import('@/views/destination')
const DesHeader = () => import('@/views/destination/des-header')
const Recommend = () => import('@/views/recommend')
const Community = () => import('@/views/community')
const Mine = () => import('@/views/mine')

const routes = [
  {
    path: '/',
    redirect: '/Recommend'
  },
  {
    path: '/recommend',
    components: {
      header: Header,
      section: Recommend,
      footer: Footer
    },
    meta: {
      title: '推荐',
      icon: '&#xe62b;',
      isfooter: true
    }
  },
  {
    path: '/destination',
    components: {
      header: DesHeader,
      section: Destination,
      footer: Footer
    },
    meta: {
      title: '目的地',
      icon: '&#xe64a;',
      isfooter: true
    }
  },
  {
    path: '/community',
    components: {
      header: Header,
      section: Community,
      footer: Footer
    },
    meta: {
      title: '社区',
      icon: '&#xe628;',
      isfooter: true
    }
  },
  {
    path: '/mine',
    components: {
      header: Header,
      section: Mine,
      footer: Footer
    },
    meta: {
      title: '我的',
      icon: '&#xe622;',
      isfooter: true
    }
  }
]

export default routes
